home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / xcmd / scrollb.cpt / ScrollBar Stack v2.0 / cards.xml < prev    next >
Encoding:
Text File  |  1992-10-18  |  55.9 KB  |  1,444 lines

  1. card_2897.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2897</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_2533.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2657</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_5112.css" />
  13.     <part>
  14.         <id>8</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <false /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>59</left>
  25.             <top>280</top>
  26.             <right>452</right>
  27.             <bottom>322</bottom>
  28.         </rect>
  29.         <style>opaque</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Times</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>16</textHeight>
  42.         <name></name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>24</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>459</left>
  57.             <top>260</top>
  58.             <right>497</right>
  59.             <bottom>302</bottom>
  60.         </rect>
  61.         <style>transparent</style>
  62.         <showName> <false /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <false /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>12392</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name></name>
  74.         <script>on mouseUp
  75. answer "Install ScrollBar XFCN into a stack?" with "No" or "Yes"
  76. if it <> "Yes" then exit mouseUp
  77. answer file "Select target stack:" of type STAK
  78. put it into tofile
  79. if tofile is empty then
  80. answer "Installation cancelled" with "OK"
  81. exit mouseUp
  82. end if
  83. DoInstall tofile
  84. end mouseUp
  85.  
  86. on DoInstall tofile
  87. global External_Error
  88. put word 2 of the long name of this stack into fromfile
  89. delete last char of fromfile
  90. delete first char of fromfile
  91. put resname into resname2 -- dest same name
  92. ResHandle "copy", fromfile, tofile, "XFCN", "ScrollBar", "ScrollBar"
  93. if "Ok" is in External_Error then
  94. answer "Installation complete" with "OK"
  95. else
  96. answer "Installation failed" with "OK"
  97. end if
  98. end DoInstall</script>
  99.     </part>
  100.     <part>
  101.         <id>9</id>
  102.         <type>field</type>
  103.         <visible> <true /> </visible>
  104.         <dontWrap> <false /> </dontWrap>
  105.         <dontSearch> <false /> </dontSearch>
  106.         <sharedText> <false /> </sharedText>
  107.         <fixedLineHeight> <false /> </fixedLineHeight>
  108.         <autoTab> <false /> </autoTab>
  109.         <lockText> <true /> </lockText>
  110.         <rect>
  111.             <left>49</left>
  112.             <top>42</top>
  113.             <right>465</right>
  114.             <bottom>105</bottom>
  115.         </rect>
  116.         <style>transparent</style>
  117.         <autoSelect> <false /> </autoSelect>
  118.         <showLines> <false /> </showLines>
  119.         <wideMargins> <false /> </wideMargins>
  120.         <multipleLines> <false /> </multipleLines>
  121.         <reservedFamily> 0 </reservedFamily>
  122.         <titleWidth>0</titleWidth>
  123.         <icon>0</icon>
  124.         <textAlign>left</textAlign>
  125.         <font>Times</font>
  126.         <textSize>12</textSize>
  127.         <textStyle>plain</textStyle>
  128.         <textHeight>16</textHeight>
  129.         <name></name>
  130.         <script></script>
  131.     </part>
  132.     <part>
  133.         <id>12</id>
  134.         <type>field</type>
  135.         <visible> <true /> </visible>
  136.         <dontWrap> <false /> </dontWrap>
  137.         <dontSearch> <false /> </dontSearch>
  138.         <sharedText> <false /> </sharedText>
  139.         <fixedLineHeight> <true /> </fixedLineHeight>
  140.         <autoTab> <false /> </autoTab>
  141.         <lockText> <true /> </lockText>
  142.         <rect>
  143.             <left>82</left>
  144.             <top>109</top>
  145.             <right>437</right>
  146.             <bottom>128</bottom>
  147.         </rect>
  148.         <style>shadow</style>
  149.         <autoSelect> <false /> </autoSelect>
  150.         <showLines> <false /> </showLines>
  151.         <wideMargins> <false /> </wideMargins>
  152.         <multipleLines> <false /> </multipleLines>
  153.         <reservedFamily> 0 </reservedFamily>
  154.         <titleWidth>0</titleWidth>
  155.         <icon>0</icon>
  156.         <textAlign>center</textAlign>
  157.         <font>Times</font>
  158.         <textSize>12</textSize>
  159.         <textStyle>plain</textStyle>
  160.         <textHeight>16</textHeight>
  161.         <name></name>
  162.         <script></script>
  163.     </part>
  164.     <part>
  165.         <id>28</id>
  166.         <type>field</type>
  167.         <visible> <true /> </visible>
  168.         <dontWrap> <false /> </dontWrap>
  169.         <dontSearch> <false /> </dontSearch>
  170.         <sharedText> <false /> </sharedText>
  171.         <fixedLineHeight> <false /> </fixedLineHeight>
  172.         <autoTab> <false /> </autoTab>
  173.         <lockText> <true /> </lockText>
  174.         <rect>
  175.             <left>48</left>
  176.             <top>134</top>
  177.             <right>465</right>
  178.             <bottom>265</bottom>
  179.         </rect>
  180.         <style>scrolling</style>
  181.         <autoSelect> <false /> </autoSelect>
  182.         <showLines> <false /> </showLines>
  183.         <wideMargins> <true /> </wideMargins>
  184.         <multipleLines> <false /> </multipleLines>
  185.         <reservedFamily> 0 </reservedFamily>
  186.         <titleWidth>0</titleWidth>
  187.         <icon>0</icon>
  188.         <textAlign>center</textAlign>
  189.         <font>Times</font>
  190.         <textSize>12</textSize>
  191.         <textStyle>plain</textStyle>
  192.         <textHeight>16</textHeight>
  193.         <name>Copyright</name>
  194.         <script>on mouseUp
  195. if the textStyle of the clickChunk contains group then
  196. popupField "cd fld XCMDs"
  197. end if
  198. end mouseUp
  199. </script>
  200.     </part>
  201.     <part>
  202.         <id>23</id>
  203.         <type>field</type>
  204.         <visible> <false /> </visible>
  205.         <dontWrap> <false /> </dontWrap>
  206.         <dontSearch> <false /> </dontSearch>
  207.         <sharedText> <false /> </sharedText>
  208.         <fixedLineHeight> <true /> </fixedLineHeight>
  209.         <autoTab> <false /> </autoTab>
  210.         <lockText> <true /> </lockText>
  211.         <rect>
  212.             <left>123</left>
  213.             <top>77</top>
  214.             <right>362</right>
  215.             <bottom>291</bottom>
  216.         </rect>
  217.         <style>opaque</style>
  218.         <autoSelect> <false /> </autoSelect>
  219.         <showLines> <false /> </showLines>
  220.         <wideMargins> <false /> </wideMargins>
  221.         <multipleLines> <false /> </multipleLines>
  222.         <reservedFamily> 0 </reservedFamily>
  223.         <titleWidth>0</titleWidth>
  224.         <icon>0</icon>
  225.         <textAlign>left</textAlign>
  226.         <font>Helvetica</font>
  227.         <textSize>10</textSize>
  228.         <textStyle>plain</textStyle>
  229.         <textHeight>13</textHeight>
  230.         <name>XCMDs</name>
  231.         <script></script>
  232.     </part>
  233.     <content>
  234.         <layer>card</layer>
  235.         <id>8</id>
  236.         <text>Dr Nigel Perry, Department of Computer Science, Massey University,
  237. Palmerston North, New Zealand
  238. N.Perry@massey.ac.nz</text>
  239.     </content>
  240.     <content>
  241.         <layer>card</layer>
  242.         <id>9</id>
  243.         <text>The ScrollBar XFCN implements scroll bar controls for HyperCard. ScrollBar() must be invoked from a button/field script and will take its size from its parent object. After the scroll bar value has been changed ScrollBar() will optionally paint an updated picture of the bar onto the card or background as appropriate. ScrollBar() will also optionally send its parent object a message while it is tracking the scroll bar thumb.</text>
  244.     </content>
  245.     <content>
  246.         <layer>card</layer>
  247.         <id>12</id>
  248.         <text>Thanks to Maurice Volaski and his ScrollControl III for the original idea</text>
  249.     </content>
  250.     <content>
  251.         <layer>card</layer>
  252.         <id>23</id>
  253.         <text>As well as ScrollBar this stack contains:
  254.  
  255. PopupField XCMD: This "pops" fields into windows which exist until a mouse click. It is being used to show you this. For more details see my stack popupfield-setcursor.
  256.  
  257. VolumeLevel XFCN: Allows you to read and alter the volume level. Comes from my Macintalk 4.0 stack.
  258.  
  259. ResHandle XFCN: Resource handling functions for HyperCard. The heart of the resource-library stack.
  260.  
  261. All the above stacks should be available on sumex, umich or other archives.
  262. (Click to continue)</text>
  263.     </content>
  264.     <content>
  265.         <layer>card</layer>
  266.         <id>28</id>
  267.         <text><span class="style1">his package consists of the stack ΓÇ£ScrollBar Stack v2.0ΓÇ¥. All </span><span class="style11"><a href="#" class="group">XCMD & XFCN</a></span><span class="style1"> code resources in this package are Copyright ┬⌐ 1992 by Nigel Perry. Code resources written using Think C therefore parts may be ┬⌐ Symantec.
  268.  
  269. </span><span class="style9">PostcardWare
  270. </span><span class="style1">
  271. If you appreciate (or just use!) this package then please send me a postcard of your home area or town. Thank you.
  272. </span><span class="style10">
  273. LICENSE AGREEMENT</span><span class="style1">
  274.  
  275. ΓÇ£You,ΓÇ¥ ΓÇ£your,ΓÇ¥ and the ΓÇ£userΓÇ¥ refers to any person or entity which acquires or uses this software.
  276.  
  277. ΓÇ£SoftwareΓÇ¥ refers to the computer programs identified above, together with all codes, techniques, software tools, formats, designs, concepts, methods, ideas, and documentation associated with the computer program(s).  The term also includes all copies of any part of the software and documentation.
  278.  
  279. ΓÇ£AuthorΓÇ¥ refers to the author of this software,  Dr Nigel Perry
  280.  
  281. This software is owned by the author and contains valuable and proprietary information of the author. If you violate any part of this agreement, your right to use this software terminates automatically.  In the event of termination of this agreement, you must destroy all copies of this software and derivatives of this software in your possession.
  282.  
  283. This software is being licensed to you as provided by the terms of this agreement.
  284.  
  285. (1) You are permitted to copy and distribute this package unchanged, except as excluded by (3) and (4) below, provided that this notice is preserved on all copies.
  286.  
  287. (2)  If you are NOT an author of ShareWare software then you may use all or part of this package in stacks & applications for your personal use and in stacks & applications which you distribute free, except as excluded by (4) below, provided this notice is preserved.
  288.  
  289. (3) If you ARE an author of ShareWare, then you may use this package for your personal use, except as excluded by (4) below, for a period of 7 days. To obtain permission to use this package after this period you must supply the author with a waiver in writing for the fees of all your ShareWare products. You will then be granted the same rights to use this software as is given to non ShareWare authors in (2) above.
  290.  
  291. (4) This software, any part of it, or any derivative of it, cannot be used: for work, buisness, commercial or profit-making purposes; included with, or as part of, other products which are sold or distributed for profit; as an inducement to buy other products; or included in ShareWare; without the permission of the author. A licence fee will usually be charged for any use covered by this clause. School, college & university teachers, lecturers and researchers, and charitable institutions will normally not be charged a licence fee for use of this software in their work.
  292.  
  293. (5) No warranty, either express or implied, is made with respect the softwares performance or fitness for purpose.
  294.  
  295. (6) You may not reverse engineer, disassemble, decompile, or otherwise attempt to discover the logic or source code to this software.
  296.  
  297. (Without prejudice to the above, the conditions might be paraphrased as</span><span class="style7"> ΓÇ£Provided you don't make money out of this software or charge me for your software [unless written as part of your job and sold as a commercial product], then you may use this software for free. If you wish to make money out of my software or charge me for yours then you don't get to use this for freeΓÇ¥</span><span class="style1">. That's reasonable isn't it?)</span></text>
  298.     </content>
  299.     <name></name>
  300.     <script>on openStack
  301. set the scroll of cd fld "CopyRight" to 0
  302. pass openStack
  303. end openStack</script>
  304. </card>
  305.  
  306.  
  307. card_4363.xml
  308. <?xml version="1.0" encoding="utf-8" ?>
  309. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  310. <card>
  311.     <id>4363</id>
  312.     <filler1>0</filler1>
  313.     <bitmap>BMAP_4811.pbm</bitmap>
  314.     <cantDelete> <false /> </cantDelete>
  315.     <showPict> <true /> </showPict>
  316.     <dontSearch> <false /> </dontSearch>
  317.     <owner>2067</owner>
  318.     <link rel="stylesheet" type="text/css" href="stylesheet_5112.css" />
  319.     <part>
  320.         <id>1</id>
  321.         <type>field</type>
  322.         <visible> <true /> </visible>
  323.         <dontWrap> <false /> </dontWrap>
  324.         <dontSearch> <false /> </dontSearch>
  325.         <sharedText> <false /> </sharedText>
  326.         <fixedLineHeight> <true /> </fixedLineHeight>
  327.         <autoTab> <false /> </autoTab>
  328.         <lockText> <true /> </lockText>
  329.         <rect>
  330.             <left>0</left>
  331.             <top>3</top>
  332.             <right>512</right>
  333.             <bottom>19</bottom>
  334.         </rect>
  335.         <style>transparent</style>
  336.         <autoSelect> <false /> </autoSelect>
  337.         <showLines> <false /> </showLines>
  338.         <wideMargins> <false /> </wideMargins>
  339.         <multipleLines> <false /> </multipleLines>
  340.         <reservedFamily> 0 </reservedFamily>
  341.         <titleWidth>0</titleWidth>
  342.         <icon>0</icon>
  343.         <textAlign>center</textAlign>
  344.         <font>Helvetica</font>
  345.         <textSize>10</textSize>
  346.         <textStyle>extend</textStyle>
  347.         <textStyle>bold</textStyle>
  348.         <textHeight>13</textHeight>
  349.         <name></name>
  350.         <script></script>
  351.     </part>
  352.     <part>
  353.         <id>3</id>
  354.         <type>field</type>
  355.         <visible> <true /> </visible>
  356.         <dontWrap> <false /> </dontWrap>
  357.         <dontSearch> <false /> </dontSearch>
  358.         <sharedText> <false /> </sharedText>
  359.         <fixedLineHeight> <true /> </fixedLineHeight>
  360.         <autoTab> <false /> </autoTab>
  361.         <lockText> <true /> </lockText>
  362.         <rect>
  363.             <left>34</left>
  364.             <top>146</top>
  365.             <right>252</right>
  366.             <bottom>253</bottom>
  367.         </rect>
  368.         <style>transparent</style>
  369.         <autoSelect> <false /> </autoSelect>
  370.         <showLines> <false /> </showLines>
  371.         <wideMargins> <false /> </wideMargins>
  372.         <multipleLines> <false /> </multipleLines>
  373.         <reservedFamily> 0 </reservedFamily>
  374.         <titleWidth>0</titleWidth>
  375.         <icon>0</icon>
  376.         <textAlign>left</textAlign>
  377.         <font>Helvetica</font>
  378.         <textSize>10</textSize>
  379.         <textStyle>plain</textStyle>
  380.         <textHeight>13</textHeight>
  381.         <name></name>
  382.         <script></script>
  383.     </part>
  384.     <part>
  385.         <id>4</id>
  386.         <type>field</type>
  387.         <visible> <true /> </visible>
  388.         <dontWrap> <false /> </dontWrap>
  389.         <dontSearch> <false /> </dontSearch>
  390.         <sharedText> <false /> </sharedText>
  391.         <fixedLineHeight> <true /> </fixedLineHeight>
  392.         <autoTab> <false /> </autoTab>
  393.         <lockText> <true /> </lockText>
  394.         <rect>
  395.             <left>34</left>
  396.             <top>267</top>
  397.             <right>252</right>
  398.             <bottom>341</bottom>
  399.         </rect>
  400.         <style>transparent</style>
  401.         <autoSelect> <false /> </autoSelect>
  402.         <showLines> <false /> </showLines>
  403.         <wideMargins> <false /> </wideMargins>
  404.         <multipleLines> <false /> </multipleLines>
  405.         <reservedFamily> 0 </reservedFamily>
  406.         <titleWidth>0</titleWidth>
  407.         <icon>0</icon>
  408.         <textAlign>left</textAlign>
  409.         <font>Helvetica</font>
  410.         <textSize>10</textSize>
  411.         <textStyle>plain</textStyle>
  412.         <textHeight>13</textHeight>
  413.         <name></name>
  414.         <script>on mouseUp
  415. if the textStyle of the clickChunk contains group then
  416. popupField "cd fld" && quote & "AboutStyle" & quote
  417. end if
  418. end mouseUp
  419. </script>
  420.     </part>
  421.     <part>
  422.         <id>5</id>
  423.         <type>field</type>
  424.         <visible> <true /> </visible>
  425.         <dontWrap> <false /> </dontWrap>
  426.         <dontSearch> <false /> </dontSearch>
  427.         <sharedText> <false /> </sharedText>
  428.         <fixedLineHeight> <true /> </fixedLineHeight>
  429.         <autoTab> <false /> </autoTab>
  430.         <lockText> <true /> </lockText>
  431.         <rect>
  432.             <left>285</left>
  433.             <top>45</top>
  434.             <right>504</right>
  435.             <bottom>115</bottom>
  436.         </rect>
  437.         <style>transparent</style>
  438.         <autoSelect> <false /> </autoSelect>
  439.         <showLines> <false /> </showLines>
  440.         <wideMargins> <false /> </wideMargins>
  441.         <multipleLines> <false /> </multipleLines>
  442.         <reservedFamily> 0 </reservedFamily>
  443.         <titleWidth>0</titleWidth>
  444.         <icon>0</icon>
  445.         <textAlign>left</textAlign>
  446.         <font>Helvetica</font>
  447.         <textSize>10</textSize>
  448.         <textStyle>plain</textStyle>
  449.         <textHeight>13</textHeight>
  450.         <name></name>
  451.         <script></script>
  452.     </part>
  453.     <part>
  454.         <id>6</id>
  455.         <type>field</type>
  456.         <visible> <true /> </visible>
  457.         <dontWrap> <false /> </dontWrap>
  458.         <dontSearch> <false /> </dontSearch>
  459.         <sharedText> <false /> </sharedText>
  460.         <fixedLineHeight> <true /> </fixedLineHeight>
  461.         <autoTab> <false /> </autoTab>
  462.         <lockText> <true /> </lockText>
  463.         <rect>
  464.             <left>286</left>
  465.             <top>132</top>
  466.             <right>504</right>
  467.             <bottom>162</bottom>
  468.         </rect>
  469.         <style>transparent</style>
  470.         <autoSelect> <false /> </autoSelect>
  471.         <showLines> <false /> </showLines>
  472.         <wideMargins> <false /> </wideMargins>
  473.         <multipleLines> <false /> </multipleLines>
  474.         <reservedFamily> 0 </reservedFamily>
  475.         <titleWidth>0</titleWidth>
  476.         <icon>0</icon>
  477.         <textAlign>left</textAlign>
  478.         <font>Helvetica</font>
  479.         <textSize>10</textSize>
  480.         <textStyle>plain</textStyle>
  481.         <textHeight>13</textHeight>
  482.         <name></name>
  483.         <script></script>
  484.     </part>
  485.     <part>
  486.         <id>7</id>
  487.         <type>field</type>
  488.         <visible> <true /> </visible>
  489.         <dontWrap> <false /> </dontWrap>
  490.         <dontSearch> <false /> </dontSearch>
  491.         <sharedText> <false /> </sharedText>
  492.         <fixedLineHeight> <true /> </fixedLineHeight>
  493.         <autoTab> <false /> </autoTab>
  494.         <lockText> <true /> </lockText>
  495.         <rect>
  496.             <left>286</left>
  497.             <top>180</top>
  498.             <right>504</right>
  499.             <bottom>289</bottom>
  500.         </rect>
  501.         <style>transparent</style>
  502.         <autoSelect> <false /> </autoSelect>
  503.         <showLines> <false /> </showLines>
  504.         <wideMargins> <false /> </wideMargins>
  505.         <multipleLines> <false /> </multipleLines>
  506.         <reservedFamily> 0 </reservedFamily>
  507.         <titleWidth>0</titleWidth>
  508.         <icon>0</icon>
  509.         <textAlign>left</textAlign>
  510.         <font>Helvetica</font>
  511.         <textSize>10</textSize>
  512.         <textStyle>plain</textStyle>
  513.         <textHeight>13</textHeight>
  514.         <name></name>
  515.         <script></script>
  516.     </part>
  517.     <part>
  518.         <id>16</id>
  519.         <type>field</type>
  520.         <visible> <true /> </visible>
  521.         <dontWrap> <false /> </dontWrap>
  522.         <dontSearch> <false /> </dontSearch>
  523.         <sharedText> <false /> </sharedText>
  524.         <fixedLineHeight> <true /> </fixedLineHeight>
  525.         <autoTab> <false /> </autoTab>
  526.         <lockText> <true /> </lockText>
  527.         <rect>
  528.             <left>287</left>
  529.             <top>310</top>
  530.             <right>447</right>
  531.             <bottom>327</bottom>
  532.         </rect>
  533.         <style>transparent</style>
  534.         <autoSelect> <false /> </autoSelect>
  535.         <showLines> <false /> </showLines>
  536.         <wideMargins> <false /> </wideMargins>
  537.         <multipleLines> <false /> </multipleLines>
  538.         <reservedFamily> 0 </reservedFamily>
  539.         <titleWidth>0</titleWidth>
  540.         <icon>0</icon>
  541.         <textAlign>left</textAlign>
  542.         <font>Helvetica</font>
  543.         <textSize>10</textSize>
  544.         <textStyle>plain</textStyle>
  545.         <textHeight>13</textHeight>
  546.         <name></name>
  547.         <script></script>
  548.     </part>
  549.     <part>
  550.         <id>21</id>
  551.         <type>field</type>
  552.         <visible> <true /> </visible>
  553.         <dontWrap> <false /> </dontWrap>
  554.         <dontSearch> <false /> </dontSearch>
  555.         <sharedText> <false /> </sharedText>
  556.         <fixedLineHeight> <true /> </fixedLineHeight>
  557.         <autoTab> <false /> </autoTab>
  558.         <lockText> <true /> </lockText>
  559.         <rect>
  560.             <left>35</left>
  561.             <top>45</top>
  562.             <right>252</right>
  563.             <bottom>115</bottom>
  564.         </rect>
  565.         <style>transparent</style>
  566.         <autoSelect> <false /> </autoSelect>
  567.         <showLines> <false /> </showLines>
  568.         <wideMargins> <false /> </wideMargins>
  569.         <multipleLines> <false /> </multipleLines>
  570.         <reservedFamily> 0 </reservedFamily>
  571.         <titleWidth>0</titleWidth>
  572.         <icon>0</icon>
  573.         <textAlign>left</textAlign>
  574.         <font>Helvetica</font>
  575.         <textSize>10</textSize>
  576.         <textStyle>plain</textStyle>
  577.         <textHeight>13</textHeight>
  578.         <name></name>
  579.         <script></script>
  580.     </part>
  581.     <part>
  582.         <id>24</id>
  583.         <type>field</type>
  584.         <visible> <false /> </visible>
  585.         <dontWrap> <false /> </dontWrap>
  586.         <dontSearch> <false /> </dontSearch>
  587.         <sharedText> <false /> </sharedText>
  588.         <fixedLineHeight> <true /> </fixedLineHeight>
  589.         <autoTab> <false /> </autoTab>
  590.         <lockText> <true /> </lockText>
  591.         <rect>
  592.             <left>119</left>
  593.             <top>197</top>
  594.             <right>365</right>
  595.             <bottom>332</bottom>
  596.         </rect>
  597.         <style>opaque</style>
  598.         <autoSelect> <false /> </autoSelect>
  599.         <showLines> <false /> </showLines>
  600.         <wideMargins> <false /> </wideMargins>
  601.         <multipleLines> <false /> </multipleLines>
  602.         <reservedFamily> 0 </reservedFamily>
  603.         <titleWidth>0</titleWidth>
  604.         <icon>0</icon>
  605.         <textAlign>center</textAlign>
  606.         <font>Helvetica</font>
  607.         <textSize>10</textSize>
  608.         <textStyle>plain</textStyle>
  609.         <textHeight>13</textHeight>
  610.         <name>AboutStyle</name>
  611.         <script></script>
  612.     </part>
  613.     <content>
  614.         <layer>card</layer>
  615.         <id>1</id>
  616.         <text>put ScrollBar(mouseDown, barStyle, doCallBack, min, max, current[, page]) into final</text>
  617.     </content>
  618.     <content>
  619.         <layer>card</layer>
  620.         <id>3</id>
  621.         <text><span class="style1">f </span><span class="style2">true</span><span class="style1"> ScrollBar() will asume a mouse down event has occurred, deal with the event and exit. If </span><span class="style2">false</span><span class="style1"> ScrollBar() will remain active as long as the mouse is within the scroll bar region and handle all mouse events during that time. Generally use </span><span class="style2">true</span><span class="style1"> if ScrollBar() is called from a </span><span class="style2">mouseDown</span><span class="style1"> handler, </span><span class="style2">false</span><span class="style1"> if called from a </span><span class="style2">mouseEnter</span><span class="style1"> handler. </span></text>
  622.     </content>
  623.     <content>
  624.         <layer>card</layer>
  625.         <id>4</id>
  626.         <text><span class="style1">f </span><span class="style2">paint</span><span class="style1"> ScrollBar() will draw a B&W control </span><span class="style7">and</span><span class="style1"> paint  a </span><span class="style11"><a href="#" class="group">picture</a></span><span class="style1"> of the scroll bar onto the card or background before exiting. If </span><span class="style2">colour</span><span class="style1"> then a colour control is drawn if your Mac supports them. Anything else draws a B&W control.</span></text>
  627.     </content>
  628.     <content>
  629.         <layer>card</layer>
  630.         <id>5</id>
  631.         <text><span class="style1">f </span><span class="style2">true</span><span class="style1"> ScrollBar() will send a </span><span class="style2">trackScroll</span><span class="style1"> message to the object which called it while tracking the control. The </span><span class="style2">trackScroll</span><span class="style1"> handler can obtain the thumb value from the global </span><span class="style2">ScrollValue</span><span class="style1">.</span></text>
  632.     </content>
  633.     <content>
  634.         <layer>card</layer>
  635.         <id>6</id>
  636.         <text>The minimum, maximum and current thumb value for the scroll bar.</text>
  637.     </content>
  638.     <content>
  639.         <layer>card</layer>
  640.         <id>7</id>
  641.         <text><span class="style1">he amount to adjust the thumb by for mouse clicks in the page up/down regions. If not given a value of 2 is used.
  642. If a negative value is used and barStyle is </span><span class="style2">paint</span><span class="style1"> then ScrollBar() will paint onto the card or background without handling any events; this is used to force a paint when setting up a scroll bar.</span></text>
  643.     </content>
  644.     <content>
  645.         <layer>card</layer>
  646.         <id>16</id>
  647.         <text>The final value of the thumb.</text>
  648.     </content>
  649.     <content>
  650.         <layer>card</layer>
  651.         <id>21</id>
  652.         <text>ScrollBar() provides standard scroll bar controls as HyperCard objects. ScrollBar() must be invoked from either a button or field script and will draw the scroll bar to cover the rectangle of its parent object.</text>
  653.     </content>
  654.     <content>
  655.         <layer>card</layer>
  656.         <id>24</id>
  657.         <text>The userLevel does NOT need to be set to painting when barStyle is paint ΓÇô ScrollBar() will adjust and reset it if need be. ScrollBar() paints onto the same layer, card or background,  as its parent object.The painting is what causes the delay when exiting from ScrollBar(). Warning: You may get out of memory errors when ScrollBar attempts to paint (at least I sometimes do on a 1M Mac+ΓǪ), in which case the scroll bar picture will be left on the clipboard.
  658. (Click to continue)</text>
  659.     </content>
  660.     <name></name>
  661.     <script></script>
  662. </card>
  663.  
  664.  
  665. card_8553.xml
  666. <?xml version="1.0" encoding="utf-8" ?>
  667. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  668. <card>
  669.     <id>8553</id>
  670.     <filler1>0</filler1>
  671.     <bitmap>BMAP_5186.pbm</bitmap>
  672.     <cantDelete> <false /> </cantDelete>
  673.     <showPict> <true /> </showPict>
  674.     <dontSearch> <false /> </dontSearch>
  675.     <owner>6693</owner>
  676.     <link rel="stylesheet" type="text/css" href="stylesheet_5112.css" />
  677.     <part>
  678.         <id>6</id>
  679.         <type>field</type>
  680.         <visible> <true /> </visible>
  681.         <dontWrap> <false /> </dontWrap>
  682.         <dontSearch> <false /> </dontSearch>
  683.         <sharedText> <false /> </sharedText>
  684.         <fixedLineHeight> <true /> </fixedLineHeight>
  685.         <autoTab> <false /> </autoTab>
  686.         <lockText> <true /> </lockText>
  687.         <rect>
  688.             <left>224</left>
  689.             <top>43</top>
  690.             <right>300</right>
  691.             <bottom>250</bottom>
  692.         </rect>
  693.         <style>opaque</style>
  694.         <autoSelect> <false /> </autoSelect>
  695.         <showLines> <false /> </showLines>
  696.         <wideMargins> <false /> </wideMargins>
  697.         <multipleLines> <false /> </multipleLines>
  698.         <reservedFamily> 0 </reservedFamily>
  699.         <titleWidth>0</titleWidth>
  700.         <icon>0</icon>
  701.         <textAlign>left</textAlign>
  702.         <font>Geneva</font>
  703.         <textSize>12</textSize>
  704.         <textStyle>plain</textStyle>
  705.         <textHeight>16</textHeight>
  706.         <name></name>
  707.         <script></script>
  708.     </part>
  709.     <part>
  710.         <id>1</id>
  711.         <type>field</type>
  712.         <visible> <true /> </visible>
  713.         <dontWrap> <false /> </dontWrap>
  714.         <dontSearch> <false /> </dontSearch>
  715.         <sharedText> <false /> </sharedText>
  716.         <fixedLineHeight> <true /> </fixedLineHeight>
  717.         <autoTab> <false /> </autoTab>
  718.         <lockText> <true /> </lockText>
  719.         <rect>
  720.             <left>37</left>
  721.             <top>46</top>
  722.             <right>282</right>
  723.             <bottom>128</bottom>
  724.         </rect>
  725.         <style>scrolling</style>
  726.         <autoSelect> <false /> </autoSelect>
  727.         <showLines> <false /> </showLines>
  728.         <wideMargins> <false /> </wideMargins>
  729.         <multipleLines> <false /> </multipleLines>
  730.         <reservedFamily> 0 </reservedFamily>
  731.         <titleWidth>0</titleWidth>
  732.         <icon>0</icon>
  733.         <textAlign>left</textAlign>
  734.         <font>Helvetica</font>
  735.         <textSize>12</textSize>
  736.         <textStyle>plain</textStyle>
  737.         <textHeight>16</textHeight>
  738.         <name>Scroll1</name>
  739.         <script></script>
  740.     </part>
  741.     <part>
  742.         <id>2</id>
  743.         <type>field</type>
  744.         <visible> <true /> </visible>
  745.         <dontWrap> <false /> </dontWrap>
  746.         <dontSearch> <false /> </dontSearch>
  747.         <sharedText> <false /> </sharedText>
  748.         <fixedLineHeight> <true /> </fixedLineHeight>
  749.         <autoTab> <false /> </autoTab>
  750.         <lockText> <true /> </lockText>
  751.         <rect>
  752.             <left>37</left>
  753.             <top>127</top>
  754.             <right>300</right>
  755.             <bottom>189</bottom>
  756.         </rect>
  757.         <style>scrolling</style>
  758.         <autoSelect> <false /> </autoSelect>
  759.         <showLines> <false /> </showLines>
  760.         <wideMargins> <false /> </wideMargins>
  761.         <multipleLines> <false /> </multipleLines>
  762.         <reservedFamily> 0 </reservedFamily>
  763.         <titleWidth>0</titleWidth>
  764.         <icon>0</icon>
  765.         <textAlign>left</textAlign>
  766.         <font>Monaco</font>
  767.         <textSize>9</textSize>
  768.         <textStyle>plain</textStyle>
  769.         <textHeight>12</textHeight>
  770.         <name>Scroll2</name>
  771.         <script></script>
  772.     </part>
  773.     <part>
  774.         <id>4</id>
  775.         <type>field</type>
  776.         <visible> <true /> </visible>
  777.         <dontWrap> <false /> </dontWrap>
  778.         <dontSearch> <false /> </dontSearch>
  779.         <sharedText> <false /> </sharedText>
  780.         <fixedLineHeight> <true /> </fixedLineHeight>
  781.         <autoTab> <false /> </autoTab>
  782.         <lockText> <true /> </lockText>
  783.         <rect>
  784.             <left>37</left>
  785.             <top>188</top>
  786.             <right>244</right>
  787.             <bottom>250</bottom>
  788.         </rect>
  789.         <style>scrolling</style>
  790.         <autoSelect> <false /> </autoSelect>
  791.         <showLines> <false /> </showLines>
  792.         <wideMargins> <false /> </wideMargins>
  793.         <multipleLines> <false /> </multipleLines>
  794.         <reservedFamily> 0 </reservedFamily>
  795.         <titleWidth>0</titleWidth>
  796.         <icon>0</icon>
  797.         <textAlign>left</textAlign>
  798.         <font>Geneva</font>
  799.         <textSize>9</textSize>
  800.         <textStyle>plain</textStyle>
  801.         <textHeight>12</textHeight>
  802.         <name>Scroll3</name>
  803.         <script></script>
  804.     </part>
  805.     <part>
  806.         <id>5</id>
  807.         <type>button</type>
  808.         <visible> <true /> </visible>
  809.         <reserved5> 0 </reserved5>
  810.         <reserved4> 0 </reserved4>
  811.         <reserved3> 0 </reserved3>
  812.         <reserved2> 0 </reserved2>
  813.         <reserved1> 0 </reserved1>
  814.         <enabled> <true /> </enabled>
  815.         <rect>
  816.             <left>22</left>
  817.             <top>46</top>
  818.             <right>38</right>
  819.             <bottom>250</bottom>
  820.         </rect>
  821.         <style>transparent</style>
  822.         <showName> <false /> </showName>
  823.         <highlight> <false /> </highlight>
  824.         <autoHighlight> <false /> </autoHighlight>
  825.         <sharedHighlight> <true /> </sharedHighlight>
  826.         <family>0</family>
  827.         <titleWidth>0</titleWidth>
  828.         <icon>0</icon>
  829.         <textAlign>center</textAlign>
  830.         <font>Chicago</font>
  831.         <textSize>12</textSize>
  832.         <textStyle>plain</textStyle>
  833.         <name>Scroller</name>
  834.         <script>on mouseEnter
  835. global Scale1, Scale2, Scale3, Range, Page
  836.  
  837. put the scroll of cd fld "Scroll1" into snum
  838. put round(snum/Scale1) into thumb
  839. put ScrollBar(false, paint, true, 0, Range, thumb, Page) into thumb
  840. lock screen
  841. set the scroll of cd fld "Scroll1" to thumb * Scale1
  842. set the scroll of cd fld "Scroll2" to thumb * Scale2
  843. set the scroll of cd fld "Scroll3" to thumb * Scale3
  844. unlock screen
  845. end mouseEnter
  846.  
  847. on trackScroll
  848. global ScrollValue, Scale1, Scale2, Scale3
  849.  
  850. lock screen
  851. set the scroll of cd fld "Scroll1" to ScrollValue * Scale1
  852. set the scroll of cd fld "Scroll2" to ScrollValue * Scale2
  853. set the scroll of cd fld "Scroll3" to ScrollValue * Scale3
  854. unlock screen
  855. end trackScroll
  856.  
  857. on initBar
  858. global Scale1, Scale2, Scale3, Range, Page
  859.  
  860. lock screen
  861. put the textHeight of cd fld "Scroll1" into Scale1
  862. put the textHeight of cd fld "Scroll2" into Scale2
  863. put the textHeight of cd fld "Scroll3" into Scale3
  864. set the scroll of cd fld "Scroll1" to 0
  865. set the scroll of cd fld "Scroll2" to 0
  866. set the scroll of cd fld "Scroll3" to 0
  867. put the number of lines in cd fld "Scroll1" into lnum
  868. put the height of cd fld "Scroll1" into height
  869. put lnum - trunc(height/Scale1) into Range
  870. put lnum - range into Page
  871. put ScrollBar(false, paint, true, 0, Range, 0, -1) into it
  872. end initBar
  873. </script>
  874.     </part>
  875.     <part>
  876.         <id>7</id>
  877.         <type>field</type>
  878.         <visible> <true /> </visible>
  879.         <dontWrap> <false /> </dontWrap>
  880.         <dontSearch> <false /> </dontSearch>
  881.         <sharedText> <false /> </sharedText>
  882.         <fixedLineHeight> <true /> </fixedLineHeight>
  883.         <autoTab> <false /> </autoTab>
  884.         <lockText> <true /> </lockText>
  885.         <rect>
  886.             <left>17</left>
  887.             <top>250</top>
  888.             <right>300</right>
  889.             <bottom>271</bottom>
  890.         </rect>
  891.         <style>opaque</style>
  892.         <autoSelect> <false /> </autoSelect>
  893.         <showLines> <false /> </showLines>
  894.         <wideMargins> <false /> </wideMargins>
  895.         <multipleLines> <false /> </multipleLines>
  896.         <reservedFamily> 0 </reservedFamily>
  897.         <titleWidth>0</titleWidth>
  898.         <icon>0</icon>
  899.         <textAlign>left</textAlign>
  900.         <font>Geneva</font>
  901.         <textSize>12</textSize>
  902.         <textStyle>plain</textStyle>
  903.         <textHeight>16</textHeight>
  904.         <name></name>
  905.         <script></script>
  906.     </part>
  907.     <part>
  908.         <id>8</id>
  909.         <type>field</type>
  910.         <visible> <true /> </visible>
  911.         <dontWrap> <false /> </dontWrap>
  912.         <dontSearch> <false /> </dontSearch>
  913.         <sharedText> <false /> </sharedText>
  914.         <fixedLineHeight> <true /> </fixedLineHeight>
  915.         <autoTab> <false /> </autoTab>
  916.         <lockText> <true /> </lockText>
  917.         <rect>
  918.             <left>308</left>
  919.             <top>116</top>
  920.             <right>494</right>
  921.             <bottom>270</bottom>
  922.         </rect>
  923.         <style>transparent</style>
  924.         <autoSelect> <false /> </autoSelect>
  925.         <showLines> <false /> </showLines>
  926.         <wideMargins> <false /> </wideMargins>
  927.         <multipleLines> <false /> </multipleLines>
  928.         <reservedFamily> 0 </reservedFamily>
  929.         <titleWidth>0</titleWidth>
  930.         <icon>0</icon>
  931.         <textAlign>left</textAlign>
  932.         <font>Helvetica</font>
  933.         <textSize>12</textSize>
  934.         <textStyle>plain</textStyle>
  935.         <textHeight>15</textHeight>
  936.         <name></name>
  937.         <script></script>
  938.     </part>
  939.     <part>
  940.         <id>9</id>
  941.         <type>field</type>
  942.         <visible> <false /> </visible>
  943.         <dontWrap> <false /> </dontWrap>
  944.         <dontSearch> <false /> </dontSearch>
  945.         <sharedText> <false /> </sharedText>
  946.         <fixedLineHeight> <true /> </fixedLineHeight>
  947.         <autoTab> <false /> </autoTab>
  948.         <lockText> <true /> </lockText>
  949.         <rect>
  950.             <left>15</left>
  951.             <top>15</top>
  952.             <right>497</right>
  953.             <bottom>273</bottom>
  954.         </rect>
  955.         <style>scrolling</style>
  956.         <autoSelect> <false /> </autoSelect>
  957.         <showLines> <false /> </showLines>
  958.         <wideMargins> <false /> </wideMargins>
  959.         <multipleLines> <false /> </multipleLines>
  960.         <reservedFamily> 0 </reservedFamily>
  961.         <titleWidth>0</titleWidth>
  962.         <icon>0</icon>
  963.         <textAlign>left</textAlign>
  964.         <font>Monaco</font>
  965.         <textSize>9</textSize>
  966.         <textStyle>plain</textStyle>
  967.         <textHeight>12</textHeight>
  968.         <name>Script</name>
  969.         <script></script>
  970.     </part>
  971.     <content>
  972.         <layer>card</layer>
  973.         <id>1</id>
  974.         <text><span class="style1">crollBar() may be used to implement 
  975. multiple scrolling fields. To do this 
  976. set doCallBack to </span><span class="style4">true</span><span class="style1"> and write a 
  977. </span><span class="style4">trackScroll</span><span class="style1"> handler to read the 
  978. current thumb value and adjust the 
  979. scroll value of your fields. To achieve 
  980. a clean scroll </span><span class="style4">lock</span><span class="style1"> the screen within 
  981. your </span><span class="style4">trackScroll</span><span class="style1"> handler before 
  982. adjusting the scroll values and </span><span class="style4">unlock</span><span class="style1"> 
  983. it again after. ScrollBar() will set 
  984. things up so that this </span><span class="style4">lock</span><span class="style1">/</span><span class="style4">unlock</span><span class="style1"> will 
  985. not destroy the scroll bar picture. For 
  986. the best effect use a </span><span class="style4">mouseEnter</span><span class="style1"> 
  987. handler to invoke ScrollBar() as this 
  988. will provide a quick response to 
  989. mouse clicks in the scroll bar.</span></text>
  990.     </content>
  991.     <content>
  992.         <layer>card</layer>
  993.         <id>2</id>
  994.         <text>ScrollBar() may be used to implement multiple scrolling fields. To do this set doCallBack to true and write a trackScroll handler to read the
  995. current thumb value and adjust the scroll value of your fields. To achieve a clean scroll lock the screen within your trackScroll handler before adjusting the scroll values and unlock it again after. ScrollBar() will set things up so that this lock/unlock will not destroy the scroll bar picture. For the best effect use a mouseEnter handler to invoke ScrollBar() as this will provide a quick response to
  996. mouse clicks in the scroll bar.</text>
  997.     </content>
  998.     <content>
  999.         <layer>card</layer>
  1000.         <id>4</id>
  1001.         <text><span class="style1">crollBar() may be used to implement multiple scrolling fields. To do this
  1002. set doCallBack to </span><span class="style4">true</span><span class="style1"> and write a </span><span class="style4">trackScroll</span><span class="style1"> handler to read the current thumb value and adjust the scroll value of your fields. To achieve
  1003. a clean scroll </span><span class="style4">lock</span><span class="style1"> the screen within your </span><span class="style4">trackScroll</span><span class="style1"> handler before adjusting the scroll values and </span><span class="style4">unlock</span><span class="style1"> it again after. ScrollBar() will set
  1004. things up so that this </span><span class="style4">lock</span><span class="style1">/</span><span class="style4">unlock</span><span class="style1"> will not destroy the scroll bar picture. For the best effect use a </span><span class="style4">mouseEnter</span><span class="style1"> handler to invoke ScrollBar() as this will provide a quick response to
  1005. mouse clicks in the scroll bar.</span></text>
  1006.     </content>
  1007.     <content>
  1008.         <layer>card</layer>
  1009.         <id>8</id>
  1010.         <text><span class="style1">etting barStyle to </span><span class="style4">paint</span><span class="style1"> gives the best ├ªsthetic effect but is slowed down by the HyperCard painting operations, this is the cause of the delay when the mouse leaves the scroll region. Using a </span><span class="style4">mouseEnter</span><span class="style1"> handler causes the cursor to change to an arrow while in the scroll region.</span></text>
  1011.     </content>
  1012.     <content>
  1013.         <layer>card</layer>
  1014.         <id>9</id>
  1015.         <text>Script of the scroll bar button:
  1016.  
  1017. on mouseEnter
  1018.   global Scale1, Scale2, Scale3, Range, Page
  1019.   
  1020.   put the scroll of cd fld "Scroll1" into snum
  1021.   put round(snum/Scale1) into thumb
  1022.   put ScrollBar(false, paint, true, 0, Range, thumb, Page) into thumb
  1023.   lock screen
  1024.   set the scroll of cd fld "Scroll1" to thumb * Scale1
  1025.   set the scroll of cd fld "Scroll2" to thumb * Scale2
  1026.   set the scroll of cd fld "Scroll3" to thumb * Scale3
  1027.   unlock screen
  1028. end mouseEnter
  1029.  
  1030. on trackScroll
  1031.   global ScrollValue, Scale1, Scale2, Scale3
  1032.   
  1033.   lock screen
  1034.   set the scroll of cd fld "Scroll1" to ScrollValue * Scale1
  1035.   set the scroll of cd fld "Scroll2" to ScrollValue * Scale2
  1036.   set the scroll of cd fld "Scroll3" to ScrollValue * Scale3
  1037.   unlock screen
  1038. end trackScroll
  1039.  
  1040. on initBar
  1041.   global Scale1, Scale2, Scale3, Range, Page
  1042.   
  1043.   put the textHeight of cd fld "Scroll1" into Scale1
  1044.   put the textHeight of cd fld "Scroll2" into Scale2
  1045.   put the textHeight of cd fld "Scroll3" into Scale3
  1046.   put the number of lines in cd fld "Scroll1" into lnum
  1047.   put the scroll of cd fld "Scroll1" into snum
  1048.   put the height of cd fld "Scroll1" into height
  1049.   put lnum - trunc(height/Scale1) into Range
  1050.   put lnum - range into Page
  1051.   put round(snum/Scale1) into thumb
  1052.   put ScrollBar(false, paint, true, 0, Range, thumb, -1) into thumb
  1053. end initBar</text>
  1054.     </content>
  1055.     <name></name>
  1056.     <script>on openCard
  1057. global lockInit
  1058. if lockInit then exit openCard
  1059.  
  1060. send initBar to cd btn "Scroller"
  1061. end openCard
  1062. </script>
  1063. </card>
  1064.  
  1065.  
  1066. card_8423.xml
  1067. <?xml version="1.0" encoding="utf-8" ?>
  1068. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1069. <card>
  1070.     <id>8423</id>
  1071.     <filler1>0</filler1>
  1072.     <bitmap>BMAP_5634.pbm</bitmap>
  1073.     <cantDelete> <false /> </cantDelete>
  1074.     <showPict> <true /> </showPict>
  1075.     <dontSearch> <false /> </dontSearch>
  1076.     <owner>6693</owner>
  1077.     <link rel="stylesheet" type="text/css" href="stylesheet_5112.css" />
  1078.     <part>
  1079.         <id>1</id>
  1080.         <type>field</type>
  1081.         <visible> <true /> </visible>
  1082.         <dontWrap> <false /> </dontWrap>
  1083.         <dontSearch> <false /> </dontSearch>
  1084.         <sharedText> <false /> </sharedText>
  1085.         <fixedLineHeight> <true /> </fixedLineHeight>
  1086.         <autoTab> <false /> </autoTab>
  1087.         <lockText> <true /> </lockText>
  1088.         <rect>
  1089.             <left>334</left>
  1090.             <top>118</top>
  1091.             <right>350</right>
  1092.             <bottom>268</bottom>
  1093.         </rect>
  1094.         <style>transparent</style>
  1095.         <autoSelect> <false /> </autoSelect>
  1096.         <showLines> <false /> </showLines>
  1097.         <wideMargins> <false /> </wideMargins>
  1098.         <multipleLines> <false /> </multipleLines>
  1099.         <reservedFamily> 0 </reservedFamily>
  1100.         <titleWidth>0</titleWidth>
  1101.         <icon>0</icon>
  1102.         <textAlign>left</textAlign>
  1103.         <font>Geneva</font>
  1104.         <textSize>12</textSize>
  1105.         <textStyle>plain</textStyle>
  1106.         <textHeight>16</textHeight>
  1107.         <name>Volume</name>
  1108.         <script>on mouseDown
  1109.  
  1110. put VolumeLevel() into orig
  1111. put ScrollBar(true, paint, false, 0, 7, orig, 1) into new
  1112. if new <> orig then
  1113. put VolumeLevel(new) into it
  1114. play "Boing"
  1115. end if
  1116. end mouseDown
  1117.  
  1118. on initBar
  1119. put ScrollBar(false, paint, false, 0, 7, VolumeLevel(), -1) into it
  1120. end initBar
  1121. </script>
  1122.     </part>
  1123.     <part>
  1124.         <id>2</id>
  1125.         <type>button</type>
  1126.         <visible> <true /> </visible>
  1127.         <reserved5> 0 </reserved5>
  1128.         <reserved4> 0 </reserved4>
  1129.         <reserved3> 0 </reserved3>
  1130.         <reserved2> 0 </reserved2>
  1131.         <reserved1> 0 </reserved1>
  1132.         <enabled> <true /> </enabled>
  1133.         <rect>
  1134.             <left>394</left>
  1135.             <top>165</top>
  1136.             <right>454</right>
  1137.             <bottom>212</bottom>
  1138.         </rect>
  1139.         <style>opaque</style>
  1140.         <showName> <true /> </showName>
  1141.         <highlight> <false /> </highlight>
  1142.         <autoHighlight> <false /> </autoHighlight>
  1143.         <sharedHighlight> <true /> </sharedHighlight>
  1144.         <family>0</family>
  1145.         <titleWidth>0</titleWidth>
  1146.         <icon>12694</icon>
  1147.         <textAlign>center</textAlign>
  1148.         <font>Chicago</font>
  1149.         <textSize>12</textSize>
  1150.         <textStyle>plain</textStyle>
  1151.         <name>Sample Tune</name>
  1152.         <script>on mouseUp
  1153. global Tempo, Pitch
  1154. put 210 into Tempo
  1155. put 4 into Pitch
  1156. playTune
  1157. set the name of me to "Stop Sample"
  1158. set the icon of me to "Sp 0"
  1159. repeat forever
  1160. if the sound is "done" or the mouse is "down" then exit repeat
  1161. end repeat
  1162. play stop
  1163. set the name of me to "Sample Tune"
  1164. set the icon of me to "Music Note"
  1165. end mouseUp
  1166. </script>
  1167.     </part>
  1168.     <part>
  1169.         <id>3</id>
  1170.         <type>field</type>
  1171.         <visible> <false /> </visible>
  1172.         <dontWrap> <false /> </dontWrap>
  1173.         <dontSearch> <false /> </dontSearch>
  1174.         <sharedText> <false /> </sharedText>
  1175.         <fixedLineHeight> <true /> </fixedLineHeight>
  1176.         <autoTab> <false /> </autoTab>
  1177.         <lockText> <true /> </lockText>
  1178.         <rect>
  1179.             <left>15</left>
  1180.             <top>15</top>
  1181.             <right>497</right>
  1182.             <bottom>273</bottom>
  1183.         </rect>
  1184.         <style>scrolling</style>
  1185.         <autoSelect> <false /> </autoSelect>
  1186.         <showLines> <false /> </showLines>
  1187.         <wideMargins> <false /> </wideMargins>
  1188.         <multipleLines> <false /> </multipleLines>
  1189.         <reservedFamily> 0 </reservedFamily>
  1190.         <titleWidth>0</titleWidth>
  1191.         <icon>0</icon>
  1192.         <textAlign>left</textAlign>
  1193.         <font>Monaco</font>
  1194.         <textSize>9</textSize>
  1195.         <textStyle>plain</textStyle>
  1196.         <textHeight>12</textHeight>
  1197.         <name>Script</name>
  1198.         <script></script>
  1199.     </part>
  1200.     <content>
  1201.         <layer>background</layer>
  1202.         <id>3</id>
  1203.         <text><span class="style1">he scroll bar adjusts the volume level of the Mac using my VolumeLevel() XFCN. ScrollBar() is called using a </span><span class="style5">mouseDown</span><span class="style1"> handler so the scroll bar is not activated unless a click occurs over the bar, this also means that the cursor will not change to an arrow in the scroll region until the button is clicked. No call back is used.
  1204. The parent object of the scroll bar is a field ΓÇö just to demonstrate the use of ScrollBar() from fieldsΓǪ
  1205.  
  1206. </span></text>
  1207.     </content>
  1208.     <content>
  1209.         <layer>card</layer>
  1210.         <id>3</id>
  1211.         <text>Script of scroll bar field:
  1212.  
  1213. on mouseDown
  1214.   
  1215.   put VolumeLevel() into orig
  1216.   put ScrollBar(true, paint, false, 0, 7, orig, 1) into new
  1217.   if new <> orig then
  1218.     put VolumeLevel(new) into it
  1219.     play "Boing"
  1220.   end if
  1221. end mouseDown
  1222.  
  1223. on initBar
  1224.   put ScrollBar(false, paint, false, 0, 7, VolumeLevel(), -1) into it
  1225. end initBar
  1226. </text>
  1227.     </content>
  1228.     <name></name>
  1229.     <script>on openCard
  1230. global lockInit
  1231. if lockInit then exit openCard
  1232.  
  1233. send initBar to cd fld "Volume"
  1234. end openCard</script>
  1235. </card>
  1236.  
  1237.  
  1238. card_3629.xml
  1239. <?xml version="1.0" encoding="utf-8" ?>
  1240. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1241. <card>
  1242.     <id>3629</id>
  1243.     <filler1>0</filler1>
  1244.     <bitmap>BMAP_4010.pbm</bitmap>
  1245.     <cantDelete> <false /> </cantDelete>
  1246.     <showPict> <true /> </showPict>
  1247.     <dontSearch> <false /> </dontSearch>
  1248.     <owner>6693</owner>
  1249.     <link rel="stylesheet" type="text/css" href="stylesheet_5112.css" />
  1250.     <part>
  1251.         <id>1</id>
  1252.         <type>button</type>
  1253.         <visible> <true /> </visible>
  1254.         <reserved5> 0 </reserved5>
  1255.         <reserved4> 0 </reserved4>
  1256.         <reserved3> 0 </reserved3>
  1257.         <reserved2> 0 </reserved2>
  1258.         <reserved1> 0 </reserved1>
  1259.         <enabled> <true /> </enabled>
  1260.         <rect>
  1261.             <left>315</left>
  1262.             <top>138</top>
  1263.             <right>484</right>
  1264.             <bottom>154</bottom>
  1265.         </rect>
  1266.         <style>rectangle</style>
  1267.         <showName> <true /> </showName>
  1268.         <highlight> <false /> </highlight>
  1269.         <autoHighlight> <false /> </autoHighlight>
  1270.         <sharedHighlight> <true /> </sharedHighlight>
  1271.         <family>0</family>
  1272.         <titleWidth>0</titleWidth>
  1273.         <icon>0</icon>
  1274.         <textAlign>center</textAlign>
  1275.         <font>Chicago</font>
  1276.         <textSize>12</textSize>
  1277.         <textStyle>plain</textStyle>
  1278.         <name>Volume Level: 3</name>
  1279.         <script>on mouseUp
  1280. put VolumeLevel() into orig
  1281. set icon of cd btn "Speaker" to "Sp" && orig
  1282. put ScrollBar(false, standard, true, 0, 7, orig, 1) into new
  1283. if new <> orig then
  1284. set the name of me to "Volume Level:" && new
  1285. put VolumeLevel(new) into it
  1286. play "Boing"
  1287. end if
  1288. set icon of cd btn "Speaker" to 0
  1289. end mouseUp
  1290.  
  1291. on initButton
  1292. set the name of me to "Volume Level:" && VolumeLevel()
  1293. end initButton
  1294.  
  1295. on trackScroll
  1296. global ScrollValue
  1297. set icon of cd btn "Speaker" to "Sp" && ScrollValue
  1298. end trackScroll
  1299. </script>
  1300.     </part>
  1301.     <part>
  1302.         <id>2</id>
  1303.         <type>button</type>
  1304.         <visible> <true /> </visible>
  1305.         <reserved5> 0 </reserved5>
  1306.         <reserved4> 0 </reserved4>
  1307.         <reserved3> 0 </reserved3>
  1308.         <reserved2> 0 </reserved2>
  1309.         <reserved1> 0 </reserved1>
  1310.         <enabled> <true /> </enabled>
  1311.         <rect>
  1312.             <left>382</left>
  1313.             <top>161</top>
  1314.             <right>415</right>
  1315.             <bottom>189</bottom>
  1316.         </rect>
  1317.         <style>transparent</style>
  1318.         <showName> <false /> </showName>
  1319.         <highlight> <false /> </highlight>
  1320.         <autoHighlight> <false /> </autoHighlight>
  1321.         <sharedHighlight> <true /> </sharedHighlight>
  1322.         <family>0</family>
  1323.         <titleWidth>0</titleWidth>
  1324.         <icon>0</icon>
  1325.         <textAlign>center</textAlign>
  1326.         <font>Chicago</font>
  1327.         <textSize>12</textSize>
  1328.         <textStyle>plain</textStyle>
  1329.         <name>Speaker</name>
  1330.         <script></script>
  1331.     </part>
  1332.     <part>
  1333.         <id>3</id>
  1334.         <type>button</type>
  1335.         <visible> <true /> </visible>
  1336.         <reserved5> 0 </reserved5>
  1337.         <reserved4> 0 </reserved4>
  1338.         <reserved3> 0 </reserved3>
  1339.         <reserved2> 0 </reserved2>
  1340.         <reserved1> 0 </reserved1>
  1341.         <enabled> <true /> </enabled>
  1342.         <rect>
  1343.             <left>369</left>
  1344.             <top>196</top>
  1345.             <right>429</right>
  1346.             <bottom>243</bottom>
  1347.         </rect>
  1348.         <style>opaque</style>
  1349.         <showName> <true /> </showName>
  1350.         <highlight> <false /> </highlight>
  1351.         <autoHighlight> <false /> </autoHighlight>
  1352.         <sharedHighlight> <true /> </sharedHighlight>
  1353.         <family>0</family>
  1354.         <titleWidth>0</titleWidth>
  1355.         <icon>12694</icon>
  1356.         <textAlign>center</textAlign>
  1357.         <font>Chicago</font>
  1358.         <textSize>12</textSize>
  1359.         <textStyle>plain</textStyle>
  1360.         <name>Sample Tune</name>
  1361.         <script>on mouseUp
  1362. global Tempo, Pitch
  1363. put 210 into Tempo
  1364. put 4 into Pitch
  1365. playTune
  1366. set the name of me to "Stop Sample"
  1367. set the icon of me to "Sp 0"
  1368. repeat forever
  1369. if the sound is "done" or the mouse is "down" then exit repeat
  1370. end repeat
  1371. play stop
  1372. set the name of me to "Sample Tune"
  1373. set the icon of me to "Music Note"
  1374. end mouseUp
  1375. </script>
  1376.     </part>
  1377.     <part>
  1378.         <id>4</id>
  1379.         <type>field</type>
  1380.         <visible> <false /> </visible>
  1381.         <dontWrap> <false /> </dontWrap>
  1382.         <dontSearch> <false /> </dontSearch>
  1383.         <sharedText> <false /> </sharedText>
  1384.         <fixedLineHeight> <true /> </fixedLineHeight>
  1385.         <autoTab> <false /> </autoTab>
  1386.         <lockText> <true /> </lockText>
  1387.         <rect>
  1388.             <left>15</left>
  1389.             <top>15</top>
  1390.             <right>497</right>
  1391.             <bottom>273</bottom>
  1392.         </rect>
  1393.         <style>scrolling</style>
  1394.         <autoSelect> <false /> </autoSelect>
  1395.         <showLines> <false /> </showLines>
  1396.         <wideMargins> <false /> </wideMargins>
  1397.         <multipleLines> <false /> </multipleLines>
  1398.         <reservedFamily> 0 </reservedFamily>
  1399.         <titleWidth>0</titleWidth>
  1400.         <icon>0</icon>
  1401.         <textAlign>left</textAlign>
  1402.         <font>Monaco</font>
  1403.         <textSize>9</textSize>
  1404.         <textStyle>plain</textStyle>
  1405.         <textHeight>12</textHeight>
  1406.         <name>Script</name>
  1407.         <script></script>
  1408.     </part>
  1409.     <content>
  1410.         <layer>background</layer>
  1411.         <id>3</id>
  1412.         <text><span class="style1">his button can also be used to adjust the volume level of the Mac. ScrollBar() is called from a </span><span class="style5">mouseUp</span><span class="style1"> handler, so to get the scroll bar you must first click on the button. As barStyle is </span><span class="style5">standard</span><span class="style1"> the scroll bar will be B&W and will not be painted onto the card by ScrollBar() before exiting, the latter makes the operation faster. While the scroll bar is being adjusted a speaker icon is altered to reflect the current volume, this is done using a </span><span class="style5">trackControl</span><span class="style1"> handler.</span></text>
  1413.     </content>
  1414.     <content>
  1415.         <layer>card</layer>
  1416.         <id>4</id>
  1417.         <text>Script of Volume Level button:
  1418.  
  1419. on mouseUp
  1420.   put VolumeLevel() into orig
  1421.   set icon of cd btn "Speaker" to "Sp" && orig
  1422.   put ScrollBar(false, standard, true, 0, 7, orig, 1) into new
  1423.   if new <> orig then
  1424.     set the name of me to "Volume Level:" && new
  1425.     put VolumeLevel(new) into it
  1426.     play "Boing"
  1427.   end if
  1428.   set icon of cd btn "Speaker" to 0
  1429. end mouseUp
  1430.  
  1431. on initButton
  1432.   set the name of me to "Volume Level:" & VolumeLevel()
  1433. end initButton
  1434.  
  1435. on trackScroll
  1436.   global ScrollValue
  1437.   set icon of cd btn "Speaker" to "Sp" && ScrollValue
  1438. end trackScroll
  1439. </text>
  1440.     </content>
  1441.     <name></name>
  1442.     <script>on openCard
  1443. global lockInit
  1444. if lockInit then exit openCard
  1445.  
  1446. send initButton to cd btn id 1
  1447. end openCard
  1448. </script>
  1449. </card>
  1450.  
  1451.  
  1452. card_6997.xml
  1453. <?xml version="1.0" encoding="utf-8" ?>
  1454. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1455. <card>
  1456.     <id>6997</id>
  1457.     <filler1>0</filler1>
  1458.     <bitmap>BMAP_7672.pbm</bitmap>
  1459.     <cantDelete> <false /> </cantDelete>
  1460.     <showPict> <true /> </showPict>
  1461.     <dontSearch> <false /> </dontSearch>
  1462.     <owner>6693</owner>
  1463.     <link rel="stylesheet" type="text/css" href="stylesheet_5112.css" />
  1464.     <part>
  1465.         <id>2</id>
  1466.         <type>button</type>
  1467.         <visible> <true /> </visible>
  1468.         <reserved5> 0 </reserved5>
  1469.         <reserved4> 0 </reserved4>
  1470.         <reserved3> 0 </reserved3>
  1471.         <reserved2> 0 </reserved2>
  1472.         <reserved1> 0 </reserved1>
  1473.         <enabled> <true /> </enabled>
  1474.         <rect>
  1475.             <left>378</left>
  1476.             <top>119</top>
  1477.             <right>394</right>
  1478.             <bottom>266</bottom>
  1479.         </rect>
  1480.         <style>transparent</style>
  1481.         <showName> <false /> </showName>
  1482.         <highlight> <false /> </highlight>
  1483.         <autoHighlight> <false /> </autoHighlight>
  1484.         <sharedHighlight> <true /> </sharedHighlight>
  1485.         <family>0</family>
  1486.         <titleWidth>0</titleWidth>
  1487.         <icon>0</icon>
  1488.         <textAlign>center</textAlign>
  1489.         <font>Chicago</font>
  1490.         <textSize>12</textSize>
  1491.         <textStyle>plain</textStyle>
  1492.         <name>Pitch</name>
  1493.         <script>on doControl
  1494. global Pitch
  1495. put ScrollBar(false, colour, true, 0, 7, Pitch, 1) into Pitch
  1496. put Pitch into cd fld "Pitch"
  1497. end doControl
  1498.  
  1499. on initButton
  1500. global Pitch
  1501. put 4 into Pitch
  1502. put Pitch into cd fld "Pitch"
  1503. end initButton
  1504.  
  1505. on trackScroll
  1506. global ScrollValue
  1507. put ScrollValue into cd fld "Pitch"
  1508. end trackScroll
  1509. </script>
  1510.     </part>
  1511.     <part>
  1512.         <id>3</id>
  1513.         <type>button</type>
  1514.         <visible> <true /> </visible>
  1515.         <reserved5> 0 </reserved5>
  1516.         <reserved4> 0 </reserved4>
  1517.         <reserved3> 0 </reserved3>
  1518.         <reserved2> 0 </reserved2>
  1519.         <reserved1> 0 </reserved1>
  1520.         <enabled> <true /> </enabled>
  1521.         <rect>
  1522.             <left>378</left>
  1523.             <top>174</top>
  1524.             <right>394</right>
  1525.             <bottom>202</bottom>
  1526.         </rect>
  1527.         <style>transparent</style>
  1528.         <showName> <false /> </showName>
  1529.         <highlight> <false /> </highlight>
  1530.         <autoHighlight> <false /> </autoHighlight>
  1531.         <sharedHighlight> <true /> </sharedHighlight>
  1532.         <family>0</family>
  1533.         <titleWidth>0</titleWidth>
  1534.         <icon>0</icon>
  1535.         <textAlign>center</textAlign>
  1536.         <font>Chicago</font>
  1537.         <textSize>12</textSize>
  1538.         <textStyle>plain</textStyle>
  1539.         <name></name>
  1540.         <script>on mouseUp
  1541. send doControl to cd btn "Pitch"
  1542. end mouseUp
  1543. </script>
  1544.     </part>
  1545.     <part>
  1546.         <id>4</id>
  1547.         <type>button</type>
  1548.         <visible> <true /> </visible>
  1549.         <reserved5> 0 </reserved5>
  1550.         <reserved4> 0 </reserved4>
  1551.         <reserved3> 0 </reserved3>
  1552.         <reserved2> 0 </reserved2>
  1553.         <reserved1> 0 </reserved1>
  1554.         <enabled> <true /> </enabled>
  1555.         <rect>
  1556.             <left>476</left>
  1557.             <top>118</top>
  1558.             <right>492</right>
  1559.             <bottom>265</bottom>
  1560.         </rect>
  1561.         <style>transparent</style>
  1562.         <showName> <false /> </showName>
  1563.         <highlight> <false /> </highlight>
  1564.         <autoHighlight> <false /> </autoHighlight>
  1565.         <sharedHighlight> <true /> </sharedHighlight>
  1566.         <family>0</family>
  1567.         <titleWidth>0</titleWidth>
  1568.         <icon>0</icon>
  1569.         <textAlign>center</textAlign>
  1570.         <font>Chicago</font>
  1571.         <textSize>12</textSize>
  1572.         <textStyle>plain</textStyle>
  1573.         <name>Tempo</name>
  1574.         <script>on doControl
  1575. global Tempo
  1576. put ScrollBar(false, colour, true, 1, 20, trunc(Tempo/30), 1) * 30 ┬¼
  1577. into Tempo
  1578. put Tempo into cd fld "Tempo"
  1579. end doControl
  1580.  
  1581. on initButton
  1582. global Tempo
  1583. put 210 into Tempo
  1584. put Tempo into cd fld "Tempo"
  1585. end initButton
  1586.  
  1587. on trackScroll
  1588. global ScrollValue
  1589. put ScrollValue * 30 into cd fld "Tempo"
  1590. end trackScroll
  1591. </script>
  1592.     </part>
  1593.     <part>
  1594.         <id>5</id>
  1595.         <type>button</type>
  1596.         <visible> <true /> </visible>
  1597.         <reserved5> 0 </reserved5>
  1598.         <reserved4> 0 </reserved4>
  1599.         <reserved3> 0 </reserved3>
  1600.         <reserved2> 0 </reserved2>
  1601.         <reserved1> 0 </reserved1>
  1602.         <enabled> <true /> </enabled>
  1603.         <rect>
  1604.             <left>476</left>
  1605.             <top>174</top>
  1606.             <right>492</right>
  1607.             <bottom>202</bottom>
  1608.         </rect>
  1609.         <style>transparent</style>
  1610.         <showName> <false /> </showName>
  1611.         <highlight> <false /> </highlight>
  1612.         <autoHighlight> <false /> </autoHighlight>
  1613.         <sharedHighlight> <true /> </sharedHighlight>
  1614.         <family>0</family>
  1615.         <titleWidth>0</titleWidth>
  1616.         <icon>0</icon>
  1617.         <textAlign>center</textAlign>
  1618.         <font>Chicago</font>
  1619.         <textSize>12</textSize>
  1620.         <textStyle>plain</textStyle>
  1621.         <name></name>
  1622.         <script>on mouseUp
  1623. send doControl to cd btn "Tempo"
  1624. end mouseUp
  1625. </script>
  1626.     </part>
  1627.     <part>
  1628.         <id>6</id>
  1629.         <type>button</type>
  1630.         <visible> <true /> </visible>
  1631.         <reserved5> 0 </reserved5>
  1632.         <reserved4> 0 </reserved4>
  1633.         <reserved3> 0 </reserved3>
  1634.         <reserved2> 0 </reserved2>
  1635.         <reserved1> 0 </reserved1>
  1636.         <enabled> <true /> </enabled>
  1637.         <rect>
  1638.             <left>371</left>
  1639.             <top>219</top>
  1640.             <right>431</right>
  1641.             <bottom>266</bottom>
  1642.         </rect>
  1643.         <style>opaque</style>
  1644.         <showName> <true /> </showName>
  1645.         <highlight> <false /> </highlight>
  1646.         <autoHighlight> <false /> </autoHighlight>
  1647.         <sharedHighlight> <true /> </sharedHighlight>
  1648.         <family>0</family>
  1649.         <titleWidth>0</titleWidth>
  1650.         <icon>12694</icon>
  1651.         <textAlign>center</textAlign>
  1652.         <font>Chicago</font>
  1653.         <textSize>12</textSize>
  1654.         <textStyle>plain</textStyle>
  1655.         <name>Sample Tune</name>
  1656.         <script>on mouseUp
  1657. global Tempo, Pitch
  1658. playTune
  1659. set the name of me to "Stop Sample"
  1660. set the icon of me to "Sp 0"
  1661. repeat forever
  1662. if the sound is "done" or the mouse is "down" then exit repeat
  1663. end repeat
  1664. play stop
  1665. set the name of me to "Sample Tune"
  1666. set the icon of me to "Music Note"
  1667. end mouseUp
  1668. </script>
  1669.     </part>
  1670.     <part>
  1671.         <id>7</id>
  1672.         <type>field</type>
  1673.         <visible> <true /> </visible>
  1674.         <dontWrap> <false /> </dontWrap>
  1675.         <dontSearch> <false /> </dontSearch>
  1676.         <sharedText> <false /> </sharedText>
  1677.         <fixedLineHeight> <true /> </fixedLineHeight>
  1678.         <autoTab> <false /> </autoTab>
  1679.         <lockText> <true /> </lockText>
  1680.         <rect>
  1681.             <left>350</left>
  1682.             <top>178</top>
  1683.             <right>377</right>
  1684.             <bottom>199</bottom>
  1685.         </rect>
  1686.         <style>opaque</style>
  1687.         <autoSelect> <false /> </autoSelect>
  1688.         <showLines> <false /> </showLines>
  1689.         <wideMargins> <false /> </wideMargins>
  1690.         <multipleLines> <false /> </multipleLines>
  1691.         <reservedFamily> 0 </reservedFamily>
  1692.         <titleWidth>0</titleWidth>
  1693.         <icon>0</icon>
  1694.         <textAlign>right</textAlign>
  1695.         <font>Chicago</font>
  1696.         <textSize>12</textSize>
  1697.         <textStyle>plain</textStyle>
  1698.         <textHeight>16</textHeight>
  1699.         <name>Pitch</name>
  1700.         <script></script>
  1701.     </part>
  1702.     <part>
  1703.         <id>8</id>
  1704.         <type>field</type>
  1705.         <visible> <true /> </visible>
  1706.         <dontWrap> <false /> </dontWrap>
  1707.         <dontSearch> <false /> </dontSearch>
  1708.         <sharedText> <false /> </sharedText>
  1709.         <fixedLineHeight> <true /> </fixedLineHeight>
  1710.         <autoTab> <false /> </autoTab>
  1711.         <lockText> <true /> </lockText>
  1712.         <rect>
  1713.             <left>443</left>
  1714.             <top>178</top>
  1715.             <right>475</right>
  1716.             <bottom>199</bottom>
  1717.         </rect>
  1718.         <style>opaque</style>
  1719.         <autoSelect> <false /> </autoSelect>
  1720.         <showLines> <false /> </showLines>
  1721.         <wideMargins> <false /> </wideMargins>
  1722.         <multipleLines> <false /> </multipleLines>
  1723.         <reservedFamily> 0 </reservedFamily>
  1724.         <titleWidth>0</titleWidth>
  1725.         <icon>0</icon>
  1726.         <textAlign>right</textAlign>
  1727.         <font>Chicago</font>
  1728.         <textSize>12</textSize>
  1729.         <textStyle>plain</textStyle>
  1730.         <textHeight>16</textHeight>
  1731.         <name>Tempo</name>
  1732.         <script></script>
  1733.     </part>
  1734.     <part>
  1735.         <id>9</id>
  1736.         <type>field</type>
  1737.         <visible> <false /> </visible>
  1738.         <dontWrap> <false /> </dontWrap>
  1739.         <dontSearch> <false /> </dontSearch>
  1740.         <sharedText> <false /> </sharedText>
  1741.         <fixedLineHeight> <true /> </fixedLineHeight>
  1742.         <autoTab> <false /> </autoTab>
  1743.         <lockText> <true /> </lockText>
  1744.         <rect>
  1745.             <left>15</left>
  1746.             <top>15</top>
  1747.             <right>497</right>
  1748.             <bottom>273</bottom>
  1749.         </rect>
  1750.         <style>scrolling</style>
  1751.         <autoSelect> <false /> </autoSelect>
  1752.         <showLines> <false /> </showLines>
  1753.         <wideMargins> <false /> </wideMargins>
  1754.         <multipleLines> <false /> </multipleLines>
  1755.         <reservedFamily> 0 </reservedFamily>
  1756.         <titleWidth>0</titleWidth>
  1757.         <icon>0</icon>
  1758.         <textAlign>left</textAlign>
  1759.         <font>Monaco</font>
  1760.         <textSize>9</textSize>
  1761.         <textStyle>plain</textStyle>
  1762.         <textHeight>12</textHeight>
  1763.         <name>Script</name>
  1764.         <script></script>
  1765.     </part>
  1766.     <content>
  1767.         <layer>background</layer>
  1768.         <id>3</id>
  1769.         <text><span class="style1">he two buttons both popup a scroll bar when clicked which can then be used to alter the value of the pitch and tempo of the sample tune. The buttons do not call ScrollBar() directly but send a </span><span class="style5">doControl</span><span class="style1"> message to a larger button which is the desired size of the scroll bar. To enable colour scroll bar popup barStyle is set to </span><span class="style5">colour</span><span class="style1">; and to track the values doControl is set </span><span class="style5">true</span><span class="style1">.</span></text>
  1770.     </content>
  1771.     <content>
  1772.         <layer>card</layer>
  1773.         <id>7</id>
  1774.         <text>4</text>
  1775.     </content>
  1776.     <content>
  1777.         <layer>card</layer>
  1778.         <id>8</id>
  1779.         <text>210</text>
  1780.     </content>
  1781.     <content>
  1782.         <layer>card</layer>
  1783.         <id>9</id>
  1784.         <text>Script of adjust pitch button:
  1785.  
  1786. on mouseUp
  1787.   send doControl to cd btn "Pitch"
  1788. end mouseUp
  1789.  
  1790. Script of button Pitch:
  1791.  
  1792. on doControl
  1793.   global Pitch
  1794.   put ScrollBar(false, colour, true, 0, 7, Pitch, 1) into Pitch
  1795.   put Pitch into cd fld "Pitch"
  1796. end doControl
  1797.  
  1798. on initButton
  1799.   global Pitch
  1800.   put 4 into Pitch
  1801.   put Pitch into cd fld "Pitch"
  1802. end initButton
  1803.  
  1804. on trackScroll
  1805.   global ScrollValue
  1806.   put ScrollValue into cd fld "Pitch"
  1807. end trackScroll
  1808. </text>
  1809.     </content>
  1810.     <name></name>
  1811.     <script>on openCard
  1812. send initButton to cd btn "Pitch"
  1813. send initButton to cd btn "Tempo"
  1814. end openCard
  1815. </script>
  1816. </card>
  1817.  
  1818.  
  1819.